package com.yuan.ssm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yuan.ssm.entity.DataRule;
import com.yuan.ssm.service.DataRuleService;

@RestController
@RequestMapping("/dataRule")
public class DataRuleController {
	@Autowired
	private DataRuleService dataRuleService;
	@GetMapping
	public DataRule getDataRule(@RequestParam("ruleNo")String ruleNo) {
		return dataRuleService.get(ruleNo);
	}
}
